{extend name="../../admin/view/main"}


{block name="content"}
<div class="layui-tab layui-tab-card">
    <div class="layui-tab-content">
        {include file='activity/activity/index_search'}
        <table class="layui-table margin-top-10" lay-skin="line">
            {notempty name='list'}
            <thead>
            <tr>
                <th class='nowrap'>ID</th>
                <th class='nowrap'>发布者</th>
                <th class='nowrap'>活动图片</th>
                <th class='nowrap'>活动名称</th>
                <th class='nowrap'>活动类型</th>
                <th class='nowrap'>活动主题</th>
                <th class='nowrap'>主办单位</th>
                <th class='nowrap'>活动地址</th>
                <th class='nowrap'>活动摘要</th>
                <th class='nowrap'>活动内容</th>
                <th class='nowrap'>注意事项</th>
                <th   width="100">嘉宾</th>
                <th class='nowrap'>起止时间</th>
                <th class='nowrap'>创建时间</th>
                <th class='nowrap'>浏览量</th>
                <th class='nowrap'>是否非公开</th>
                <th class='nowrap'>活动状态</th>
                <th class='nowrap'>审核状态</th>
                <th class='nowrap'>审核</th>
            </tr>
            </thead>
            {/notempty}
            <tbody>
            {foreach $list as $key=>$vo}
            <tr>
                <td>{$vo.id}</td>
                <td>
                    
                    <span>{$vo.userModel.name}</span>
                </td>
                <td class="nowrap">
                    <img src="{$vo.logo}" style="height:50px ;width:150px" alt="">
                </td>
                <td class="nowrap">{$vo.name|default='-'}</td>
                <td class="nowrap">{$vo.type_name|default='-'}</td>
                <td class="nowrap">
                    {volist name="$vo.themes" id="theme"} 
                    <span class="layui-badge layui-bg-orange">{$theme}</span>
                    {/volist}

                </td>
                <td class="nowrap">{$vo.organizer_name|default='-'}</td>
                <td class="nowrap">{$vo.address_detail|default='-'}</td>
                <td class="nowrap"><p style="width: 200px;overflow: hidden;text-overflow: ellipsis;cursor:pointer;" title="{$vo.abstract|default=''}">{$vo.abstract|default='-'}</p></td>
                <td class="nowrap"><p style="width: 200px;overflow: hidden;text-overflow: ellipsis;cursor:pointer;" title="{$vo.desc|default=''}">{$vo.desc|default='-'}</p></td>
                <td class="nowrap"><p style="width: 200px;overflow: hidden;text-overflow: ellipsis;cursor:pointer;" title="{$vo.notice|default=''}">{$vo.notice|default='-'}</p></td>
                <td style="display:flex">
                    {notempty name="vo.guestModel"}
                        {volist name="vo.guestModel" id="guest"} 
                            <div style="text-align: center;margin-right: 10px;">
                                <img src="{$guest.profile}" style="width: 45px;height:45px;border-radius:50%" alt="">
                                <p>{$guest.username}</p>
                            </div>
                        {/volist}
                    {/notempty}
                </td>
                <td class="nowrap">
                    {$vo.begin_time|default='-'} 
                    <br />
                     {$vo.end_time|default='-'}
                </td>
                <td class="nowrap">{$vo.create_time|default='-'}</td>
                <td class="nowrap">{$vo.views|default='0'}</td>
                <td class="nowrap">{$vo.un_public == 1 ? '是' : '否'}</td>
                <td class="nowrap">{$vo.status_name}</td>
                <td class="nowrap">{$vo.state}</td>
                <td class="nowrap">
                    {if ($vo.status == 0)} 
                    <a class="layui-btn layui-btn-sm layui-btn-normal" data-action="{:url('state')}" data-confirm="确定要通过么？" data-value="id#{$vo.id};status#1">通过</a>
                    <a class="layui-btn layui-btn-sm layui-btn-danger" data-action="{:url('state')}" data-confirm="确定要拒绝么？" data-value="id#{$vo.id};status#2">拒绝</a>
                    {/if}
                </td>
            </tr>
            {/foreach}
            </tbody>
        </table>
        {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
    </div>
</div>
{/block}
